import request from '@/utils/request'

// 查询学习内容列表
export function listLeaningContent(query) {
  return request({
    url: '/examine/leaningContent/list',
    method: 'get',
    params: query
  })
}

// 查询学习内容详细
export function getLeaningContent(id) {
  return request({
    url: '/examine/leaningContent/' + id,
    method: 'get'
  })
}

// 新增学习内容
export function addLeaningContent(data) {
  return request({
    url: '/examine/leaningContent',
    method: 'post',
    data: data
  })
}

// 修改学习内容
export function updateLeaningContent(data) {
  return request({
    url: '/examine/leaningContent',
    method: 'put',
    data: data
  })
}

// 删除学习内容
export function delLeaningContent(id) {
  return request({
    url: '/examine/leaningContent/' + id,
    method: 'delete'
  })
}
